package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "LOST_DOC_ST")
public class LostDocSt implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "LOST_DOC_ST_SEQ")
	@SequenceGenerator(name = "LOST_DOC_ST_SEQ", sequenceName = "LOST_DOC_ST_SEQ", allocationSize = 1)
	@Column(name = "LOST_DOC_ST_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int lostDocStversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "USR", nullable = false, length = 50)
	private String usr;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "LAST_UPDATED", nullable = false, length = 8)
	private java.sql.Timestamp lastUpdated;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "ENTITY_STATUS_DETAIL_FK", nullable = false, length = 40)
	private String entityStatusDetailFk;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@OneToOne(targetEntity = LostDocument.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "LOST_DOCUMENT_FK",referencedColumnName = "LOST_DOCUMENT_ID",nullable = false)
	})
	private LostDocument lostDocument;

	public LostDocSt() {
	}

	// Constructor for primary key
	public LostDocSt(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getLostDocStversion() {
		return lostDocStversion;
	}

	public void setLostDocStversion(int lostDocStversion) {
		this.lostDocStversion = lostDocStversion;
	}

	public String getUsr() {
		return usr;
	}

	public void setUsr(String usr) {
		this.usr = usr;
	}

	public java.sql.Timestamp getLastUpdated() {
		return lastUpdated;
	}

	public void setLastUpdated(java.sql.Timestamp lastUpdated) {
		this.lastUpdated = lastUpdated;
	}

	public String getEntityStatusDetailFk() {
		return entityStatusDetailFk;
	}

	public void setEntityStatusDetailFk(String entityStatusDetailFk) {
		this.entityStatusDetailFk = entityStatusDetailFk;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(
			java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public LostDocument getLostDocument() {
		return lostDocument;
	}

	public void setLostDocument(
LostDocument lostDocument) {
		this.lostDocument = lostDocument;
	}
}
